<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite App</title>
  </head>
  <body>
    <div id="container"></div>
    <div id="root"></div>
    <script>
      const container=document.getElementById('container');
      const span1=document.createElement('span');
      const span2=document.createElement('span');
      span1.innerText='span1';
      span2.innerText='span2';
      // container.appendChild('span1');
      // container.appendChild('span2');
      // const wrapper=document.createElement('div');
      const wrapper=document.createDocumentFragment();//创建一个文档碎片
      wrapper.appendChild(span1);
      wrapper.appendChild(span2);
      container.appendChild(wrapper);
      
    </script>
    <script type="module" src="/src/main.jsx"></script>
  </body>
</html>
